/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.todoterreno.beans;

import java.io.IOException;
import java.io.Serializable;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;

/**
 *
 * @author davex
 */
public class MenuProyectInvertBean implements Serializable{

    private String valbtn1;
    private String valbtn2;
    private String valbtn3;
    private String valbtn4;
    
    
    public MenuProyectInvertBean() {
        valbtn1="Compra de terrenos para lotificar con acceso cercano de agua y electricidad";
        valbtn2="Compra de lotes para construir en proyectos El Salvador y vender en mercado USA.";
        valbtn3="Compra de terrenos cerca de la costa para turismo ( hoteles, cabañas, restaurantes)";
        valbtn4="Compra de locales comerciales";
    }
    
    public void redirectCompraCerca() throws IOException{
        ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
        String ctxpath=((ServletContext) context.getContext()).getContextPath();
        context.redirect(ctxpath+"/pages/compraCerca.xhtml");
        
    }
    
    public void redirectCompraCosta() throws IOException{
        ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
        String ctxpath=((ServletContext) context.getContext()).getContextPath();
        context.redirect(ctxpath+"/pages/compraCosta.xhtml");
        
    }
    
    public void redirectCompraUsaes() throws IOException{
        ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
        String ctxpath=((ServletContext) context.getContext()).getContextPath();
        context.redirect(ctxpath+"/pages/compraUsaes.xhtml");
    }
    
    public void redirectCompraLocal() throws IOException{
        ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
        String ctxpath=((ServletContext) context.getContext()).getContextPath();
        context.redirect(ctxpath+"/pages/compraLocal.xhtml");
    }

    public String getValbtn1() {
        return valbtn1;
    }

    public void setValbtn1(String valbtn1) {
        this.valbtn1 = valbtn1;
    }

    public String getValbtn2() {
        return valbtn2;
    }

    public void setValbtn2(String valbtn2) {
        this.valbtn2 = valbtn2;
    }

    public String getValbtn3() {
        return valbtn3;
    }

    public void setValbtn3(String valbtn3) {
        this.valbtn3 = valbtn3;
    }

    public String getValbtn4() {
        return valbtn4;
    }

    public void setValbtn4(String valbtn4) {
        this.valbtn4 = valbtn4;
    }
    
    
    
}
